/**
  **************************************************************************
  * @file     at32f435_437_int.h
  * @version  v2.1.0
  * @date     2022-08-16
  * @brief    header file of main interrupt service routines.
  **************************************************************************
  *                       Copyright notice & Disclaimer
  *
  * The software Board Support Package (BSP) that is made available to
  * download from Artery official website is the copyrighted work of Artery.
  * Artery authorizes customers to use, copy, and distribute the BSP
  * software and its related documentation for the purpose of design and
  * development in conjunction with Artery microcontrollers. Use of the
  * software is governed by this copyright notice and the following disclaimer.
  *
  * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
  * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
  * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
  * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
  * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
  *
  **************************************************************************
  */

/* define to prevent recursive inclusion -------------------------------------*/
#ifndef __AT32F435_437_INT_H
#define __AT32F435_437_INT_H

#ifdef __cplusplus
extern "C" {
#endif

/* includes ------------------------------------------------------------------*/
#include "at32f435_437.h"

/* exported types ------------------------------------------------------------*/
/* exported constants --------------------------------------------------------*/
/* exported macro ------------------------------------------------------------*/
/* exported functions ------------------------------------------------------- */

void NMI_Handler(void);
void HardFault_Handler(void);
void MemManage_Handler(void);
void BusFault_Handler(void);
void UsageFault_Handler(void);
void SVC_Handler(void);
void DebugMon_Handler(void);
void PendSV_Handler(void);
void SysTick_Handler(void);

/*中断优先级管理*/
#define 	usart1_preempt_priority 12
#define 	usart1_sub_priority 0

#define  	usart2_preempt_priority 7
#define 	usart2_sub_priority 0
 
#define  	usart3_preempt_priority 8
#define 	usart3_sub_priority 0
 
#define  	usart5_preempt_priority 6
#define 	usart5_sub_priority 0

#define  	usart4_preempt_priority 13
#define 	usart4_sub_priority 0

#define   usart6_preempt_priority 11
#define   usart6_sub_priority 0

#define   Time10_preempt_priority 15
#define   Time10_sub_priority 0
 
#define  	usart7_preempt_priority 10
#define 	usart7_sub_priority 0
 
#define  	OSD_preempt_priority 10
#define 	OSD_sub_priority  0

#define  	BatteryDate_ADC1_preempt_priority 14
#define 	BatteryDate_ADC1_sub_priority  0

#ifdef __cplusplus
}
#endif

#endif

